package com.zhang.dao.impl;

import com.zhang.dao.BookDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;


@Component("bookDao")
public class BookDaoImpl implements BookDao {
    @Override
    public void sava() {
        System.out.println("book dao sava");
    }

    public BookDaoImpl() {
    }


    //表示bean初始化对应的操作
    public void init() {
        System.out.println("init");
    }

    //表示bean销毁前对应的操作
    public void destroy(){
        System.out.println("destroy");
    }

}
